package com.example.mapper;


import com.example.pojo.Category;
import com.example.util.ResponseResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {


    public Category getCategoryById(int category_id);

    Category getCategoryByName(String category_name);

     int addCategory(@Param("category") Category category);

    int updateCategory(Category category);

     void deleteById(int category_id);

//    public void deleteCategoryById(int category_id);

//    public List<Category> getAllCategory();

     List<Category> getAllCategoryMap();


}
